<?php
class entity_users extends CI_Model {
	public function __construct()
	{
            $this->load->library('mongo_db');
	}        
        
        /* Fungsi Mencari User berdasarkan username
         */
        public function findUsers($username)
        {
            $hasil = $this->mongo_db->where(array('username' => $username))->get('users');
            return $hasil;
        }
}     